package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Stiofan on 2017/3/7.
 */
@Entity
@Table(name = "CS_BD_JGDY")
public class CsBdJgdy {
    private String jgdyUuid;
    private String bddyUuid;
    private String jgid;
    private String jgmc;
    private String jglx;
    private String jggs;
    private BigDecimal xssx;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;

    @Id
    @Column(name = "JGDY_UUID")
    public String getJgdyUuid() {
        return jgdyUuid;
    }

    public void setJgdyUuid(String jgdyUuid) {
        this.jgdyUuid = jgdyUuid;
    }

    @Basic
    @Column(name = "BDDY_UUID")
    public String getBddyUuid() {
        return bddyUuid;
    }

    public void setBddyUuid(String bddyUuid) {
        this.bddyUuid = bddyUuid;
    }

    @Basic
    @Column(name = "JGID")
    public String getJgid() {
        return jgid;
    }

    public void setJgid(String jgid) {
        this.jgid = jgid;
    }

    @Basic
    @Column(name = "JGMC")
    public String getJgmc() {
        return jgmc;
    }

    public void setJgmc(String jgmc) {
        this.jgmc = jgmc;
    }

    @Basic
    @Column(name = "JGLX")
    public String getJglx() {
        return jglx;
    }

    public void setJglx(String jglx) {
        this.jglx = jglx;
    }

    @Basic
    @Column(name = "JGGS")
    public String getJggs() {
        return jggs;
    }

    public void setJggs(String jggs) {
        this.jggs = jggs;
    }

    @Basic
    @Column(name = "XSSX")
    public BigDecimal getXssx() {
        return xssx;
    }

    public void setXssx(BigDecimal xssx) {
        this.xssx = xssx;
    }

    @Basic
    @Column(name = "LRR_DM")
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ")
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM")
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ")
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CsBdJgdy csBdJgdy = (CsBdJgdy) o;

        if (jgdyUuid != null ? !jgdyUuid.equals(csBdJgdy.jgdyUuid) : csBdJgdy.jgdyUuid != null) return false;
        if (bddyUuid != null ? !bddyUuid.equals(csBdJgdy.bddyUuid) : csBdJgdy.bddyUuid != null) return false;
        if (jgid != null ? !jgid.equals(csBdJgdy.jgid) : csBdJgdy.jgid != null) return false;
        if (jgmc != null ? !jgmc.equals(csBdJgdy.jgmc) : csBdJgdy.jgmc != null) return false;
        if (jglx != null ? !jglx.equals(csBdJgdy.jglx) : csBdJgdy.jglx != null) return false;
        if (jggs != null ? !jggs.equals(csBdJgdy.jggs) : csBdJgdy.jggs != null) return false;
        if (xssx != null ? !xssx.equals(csBdJgdy.xssx) : csBdJgdy.xssx != null) return false;
        if (lrrDm != null ? !lrrDm.equals(csBdJgdy.lrrDm) : csBdJgdy.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(csBdJgdy.lrrq) : csBdJgdy.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(csBdJgdy.xgrDm) : csBdJgdy.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(csBdJgdy.xgrq) : csBdJgdy.xgrq != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = jgdyUuid != null ? jgdyUuid.hashCode() : 0;
        result = 31 * result + (bddyUuid != null ? bddyUuid.hashCode() : 0);
        result = 31 * result + (jgid != null ? jgid.hashCode() : 0);
        result = 31 * result + (jgmc != null ? jgmc.hashCode() : 0);
        result = 31 * result + (jglx != null ? jglx.hashCode() : 0);
        result = 31 * result + (jggs != null ? jggs.hashCode() : 0);
        result = 31 * result + (xssx != null ? xssx.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        return result;
    }
}
